package ssm.mapper;

import org.apache.ibatis.annotations.Select;
import ssm.entity.type;

import java.util.List;

public interface TypeMapper {
    @Select("select name from t_type where id=#{id}")
    type findById(int id);

    @Select("select * from t_type")
    List<type> findAll();
}
